package com.poorstu.manager;

import java.util.ArrayList;
import java.util.List;

import com.common.base.model.PaginationSupport;
import com.poorstu.model.LoginMod;
import com.poorstu.model.PowerMod;
import com.poorstu.model.RoleMod;

public interface LoginMeg {
	
	public LoginMod longin(String name,String password);
	
	
	/**
	 *  查询所有用户
	 * @return List<LoginMod>
	 */
	public List<LoginMod> selectUserAll();
	
	public boolean menberAdd(LoginMod login,int classId,int roleId);
	
	public LoginMod selectUserById(int allUserId);
	
	public boolean menberUpdate(LoginMod login);
	
	public boolean menberDelete(int user[]);
	
	public LoginMod login(String userAccount,String psw);
	
	public PaginationSupport searchAllUserByPage(int start);
	
	public LoginMod selectUserByUserAccount(String userAccount);
	
	public boolean changePwd(int allUserId,String oldPwd,String newPwd);

	public boolean userAdd(ArrayList<LoginMod> loginList);
}
